source 'https://github.com/CocoaPods/Specs.git'
source 'https://github.com/aliyun/aliyun-specs.git'
# platform :ios, '9.0'
inhibit_all_warnings!
target "BaseProject" do

pod 'Masonry', '1.1.0'
pod 'MJRefresh', '3.4.3'
pod 'MJExtension', '3.2.1'

pod 'SDWebImage', '~> 5.9.0'
pod 'SDWebImageWebPCoder'

pod 'AFNetworking', '~> 4.0.1'
pod 'SAMKeychain', '~> 1.5.3'
pod 'SVProgressHUD', '2.2.5'

# qrcode
pod 'SGQRCode', '~> 3.0.1'
#启动页
pod 'Onboard', '~> 2.3.3'

#动画
pod 'lottie-ios', '~>2.1.0'

#选择器
pod 'BRPickerView', '2.6.2'

#视频播放
pod 'SJVideoPlayer'
#为了解决yykit与yymodel冲突  指定了SJUIKit/SQLite3
pod 'SJUIKit/SQLite3', :podspec => 'https://gitee.com/changsanjiang/SJUIKit/raw/master/SJUIKit-YYKit.podspec'

pod 'CLPlayer', '~> 1.3.1'

#轮播
pod 'SDCycleScrollView', '~> 1.82'
pod 'RollingNotice'#文字
pod 'EllipsePageControl','~> 0.0.4'#分页控制
pod 'JXCategoryView', '~> 1.5.8'

#图片浏览器
pod 'GKPhotoBrowser', '~> 2.0.0'#图片浏览

#键盘
pod 'IQKeyboardManager'#键盘管理

#弹窗
pod 'LSTPopView', '~>0.2.122201'
# 弹出视图
pod 'STPopup', '~> 1.8.6'

pod 'BaiduMobStatCodeless'

#日历
pod 'FSCalendar'

#选择器
pod 'BRPickerView', '2.6.2'

pod 'YYStarView', '1.0.2'

pod 'HMSegmentedControl', '1.5.5'

pod 'SCLAlertView-Objective-C'

#  IM
pod 'TXIMSDK_TUIKit_iOS', '~> 5.0.7'

pod 'coobjc'

pod 'YYKit'

pod "RTRootNavigationController"
pod 'CYLTabBarController'

pod 'TZImagePickerController', '3.3.2'
pod 'TTTAttributedLabel', '~> 2.0.0'

pod 'AMapSearch'
pod 'AMapLocation'
pod 'AMapNavi'

pod 'SKUDataFilter', '~> 1.0.2'

pod 'XHLaunchAd'

# mob
pod 'mob_sharesdk'
pod 'mob_sharesdk/ShareSDKPlatforms/QQ'
pod 'mob_sharesdk/ShareSDKPlatforms/SinaWeibo'
pod 'mob_sharesdk/ShareSDKPlatforms/WeChat_Lite'

# 极光推送、认证
pod 'JVerification', '3.2.4'
pod 'JPush'
pod 'JOperate' #可选，集成极光分析SDK后，即可支持行为触发推送消息、推送转化率统计，用户行为分析和用户标签等功能

# 一键唤醒
pod 'libOpenInstallSDK'

# 支付
pod 'WechatOpenSDK' #, '2.0.4'
pod 'AlipaySDK-iOS' #, '15.8.16'

# 拉卡拉
pod 'LKLPaymentSdk'

end

post_install do |installer|
    installer.pods_project.targets.each do |target|
        target.build_configurations.each do |config|
            #config.build_settings['IPHONEOS_DEPLOYMENT_TARGET'] = '12.3'
            config.build_settings['CODE_SIGNING_REQUIRED'] = "NO"
            config.build_settings['CODE_SIGNING_ALLOWED'] = "NO"
            # 处理 M1 芯片上不支持 模拟器 运行问题：不仅仅编译活跃的架构，反之就是 i386、x86_64、arm64 等架构都编译。
            config.build_settings['ONLY_ACTIVE_ARCH'] = 'NO'
            # Xcode14 个别库需要证书
            config.build_settings['CODE_SIGN_IDENTITY'] = ''
        end
    end
    installer.pods_project.build_configurations.each do |config|
      config.build_settings["EXCLUDED_ARCHS[sdk=iphonesimulator*]"] = "arm64"
      config.build_settings["ARCHS[sdk=iphonesimulator*]"] = "x86_64"
    end
    bitcode_strip_path = `xcrun --find bitcode_strip`.chop!
      def strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
        framework_path = File.join(Dir.pwd, framework_relative_path)
        command = "#{bitcode_strip_path} #{framework_path} -r -o #{framework_path}"
        puts "Stripping bitcode: #{command}"
        system(command)
      end
      framework_paths = [
        "/Pods/TXIMSDK_iOS/ImSDK.framework/ImSDK"
      ]
      framework_paths.each do |framework_relative_path|
        strip_bitcode_from_framework(bitcode_strip_path, framework_relative_path)
      end

end
